package com.competition.prediction.dto;

import lombok.Data;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;

@Data
public class PlaceBetDTO {
    @NotNull(message = "比赛ID不能为空")
    private Long competitionId;

    @NotNull(message = "投注选项ID不能为空")
    private Long betOptionId;

    @NotNull(message = "投注金额不能为空")
    @Positive(message = "投注金额必须大于0")
    private Long betAmount;
}